package user

import (
	"github.com/gin-gonic/gin"
	"log"
	"test.com/project-user/router"
)

func init() {
	log.Println("init user router")
	router.Register(&RouterUser{}) //将User相关的路由添加到router数组中
}

// user项目的路由, 需要实现路由接口
type RouterUser struct {
}

func (*RouterUser) Route(r *gin.Engine) {
	h := New()
	r.POST("/project/login/getCaptcha", h.getCaptcha)
}
